package com.ccrfid.rmc6.service.video;

import com.ccrfid.rmc6.pojo.hikartemis.resp.AppSecret;
import com.ccrfid.rmc6.pojo.hikartemis.resp.CameraInfo;
import com.ccrfid.rmc6.pojo.hikartemis.resp.RegionInfo;

import java.util.List;

public interface HikArtemisService {
    //是否海康artemis云平台类型
    boolean isHikArtemisType(Integer type);

    //获取加密Key
    AppSecret getAppSecret();

    //获取全部机构信息
    List<RegionInfo> getAllRegions();

    //获取某个结构的子机构
    List<RegionInfo> getSubRegions(String regionIndexCode);

    //获取全部摄像头信息
    List<CameraInfo> getAllCameras();

    //获取某个机构下的摄像头信息
    List<CameraInfo> getSubCameras(String regionIndexCode);

    //获取实时预览url
    String getPreviewURL(String cameraIndexCode, String protocol, Integer streamType, Integer transmode);

    //获取回放取流url, 时间格式: yyyy-MM-dd'T'HH:mm:ss.SSSzzz
    String getPlaybackURL(String cameraIndexCode, String protocol, String beginTime, String endTime, Integer recordLocation);
    //永康特殊
    String getPlaybackURL2(String cameraIndexCode, String protocol, String beginTime, String endTime, Integer recordLocation);
}
